package com.yz.smartpos.yztester.util;

import android.app.Activity;

public final class ContextUtil {
    private static ContextUtil contextUtil = null;
    private static Activity activity ;
    private String caseName;
    private ContextUtil(){
    }

    public static ContextUtil getInstance() {
        if (null == contextUtil){
            synchronized(ContextUtil.class){
                if ( null == contextUtil){
                    contextUtil = new ContextUtil();
                }
            }
        }
        return  contextUtil;
    }

    public static void setActivity(Activity activity){
        ContextUtil.activity = activity;
    }

    public Activity getActivity(){
        return activity;
    }

    public void setCaseName(String caseName) {
        this.caseName = caseName;
    }

    public String getCaseName() {
        return this.caseName;
    }
}
